package com.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.beans.Admin;

@Mapper
public interface AdminMapper {
    int addAdmin(Admin user);

    int updateAdmin(Admin user);

    int deleteAdmin(int id);

    Admin getAdminById(int id);

    List<Admin> getAllAdmin();

    List<Admin> getone(@Param("userName") String userName);
}
